﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Project.Net.Infra.Entity;


namespace Project.Net.Infra.Maps
{
    public class UserModelMap : IEntityTypeConfiguration<UserModel>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="builder"></param>
        public void Configure(EntityTypeBuilder<UserModel> builder)
        {
            builder.ToTable("Tb_UserInfo");
            builder.HasKey(x => new { x.Id });
        }
    }
}
